package com.meng.cloud.service.hystrix;

import com.meng.cloud.service.HelloRemote;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * spring cloud的熔断器hystrix  当服务放不可用则执行 这个回调类
 *
 * @author MENG
 * @version 2018/1/4
 * @see
 */
@Component
public class HelloRemoteHystrix implements HelloRemote
{
    @Override
    public String sayHello(@RequestParam("name") String name)
    {
        return "Sorry " + name + ",The producer cluster server unavailable";
    }
}
